package bean.caculate;


import bean.actor.BaseActor;

public class SpecialReportFizzStudent extends AbstractCaculator {
    public static final String REPORT = "Fizz";

    @Override
    boolean canCaculate(BaseActor baseActor) {
        String noString = String.valueOf(baseActor.getNo());
        return noString.contains("3");
    }

    @Override
    BaseActor handle(BaseActor baseActor) {
        baseActor.setReport(REPORT);
        return baseActor;
    }
}
